/// <reference path="../_all.ts" />

module Application.Resources {
    export interface IPlayerClass extends ng.resource.IResourceClass {
        saveCollection(params: any, data: any, success?: Function, error?: Function): IMember[];
    }
    export interface IPlayerHistoryClass extends ng.resource.IResourceClass {
    }
    export interface IPlayer extends ng.resource.IResource {
        player_id: number;
        player_name: string;
        guid: string;
        gameid: string;
        last_server: number;
        last_ip: string;
        last_datetime: Date;
        is_banned: boolean;
        ban: IBan;
        ban_reason: string;
        histories: IPlayerHistory[];
        bans: IBan[];
    }
    export interface IPlayerHistory extends ng.resource.IResource {
        history_id: number;
        player_id: number;
        server_id: number;
        player_name: string;
        connect_datetime: Date;
        ip: string;
    }
    export interface IBan extends ng.resource.IResource {
        ban_id: number;
        player_id: number;
        user_id: number;
        reason: string;
        ban_datetime: Date;
        user_ip: string;
        is_lifted: boolean;
        user_lift_id: number;
        user_lift_ip: number;
        lifted_datetime: Date;
    }
}